/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package SISAC.DACEA.BL;
import SISAC.DACEA.DA.SalonDA;
import SISAC.DACEA.DA.TutorDA;
import SISAC.DACEA.ENTITY.Salon;
import SISAC.DACEA.ENTITY.Tutor;
import java.util.ArrayList;

/**
 *
 * @author Abel
 */
public class SalonBL {
    
    public synchronized void crearSalon(Salon oSalon){
        try {
            new SalonDA().crearSalon(oSalon);
        } catch (Exception e) {
        }
    }
    public synchronized ArrayList<Tutor> listarTutor(){
        try {
            return new SalonDA().listarTutor();
        } catch (Exception e) {
            System.out.println("error "+e);
            return null;
        }
    }
    public synchronized boolean actualizarEstadoTutor(Tutor oTutor){
        try {
            new SalonDA().actualizarEstadoTutor(oTutor);
            return true;
        } catch (Exception e) {
            return false;
        }
    }
}
